$(document).ready(function(){
	var validator = $("#frmFaq").validate({
		errorElement:'div',
		rules: {
			faq_cat: {
				required: true
			},
			faq_ques: {
				required: true
			}
		},
		messages: {
			faq_cat: {
				required: "Select faq category"
			},
			faq_ques: {
				required: "Enter faq question"
			}
		}
	});
	
	/* FCKEditor validation*/
	if(typeof jQuery.fn.fckEditorValidate == 'function') {
		jQuery.fn.fckEditorValidate({instanceName: 'faqans_content'});
	}
	
});